<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
    <title>自助查询</title>
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/weui-1.0.2/dist/style/weui.min.css"/>
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/dpa/css/search.css"/>
    <script type="text/javascript" src="__PUBLIC__/dpa/js/jquery-2.1.4.js"></script>
</head>
<body>
<form action="__CONTROLLER__/jingque" method="get">
<input type="hidden" name="requester" value="{$requester}">
<input type="hidden" name="openid" value="{$openid}">
<div class="weui-cells weui-cells_form">
    <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">证书编号</label></div>
        <div class="weui-cell__bd">
            <input class="weui-input" type="text"  name="dpasum" placeholder="请输入证书编号" />
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">任务单号</label></div>
        <div class="weui-cell__bd">
            <input class="weui-input" type="text" name="gxsum"  placeholder="请输入任务单号"/>
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">型号规格</label></div>
        <div class="weui-cell__bd">
            <input class="weui-input" type="text" name="xhtype"  placeholder="请输入型号规格"/>
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">统一编号</label></div>
        <div class="weui-cell__bd">
            <input class="weui-input" type="text" name="norm"  placeholder="请输入统一编号"/>
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">出厂编号</label></div>
        <div class="weui-cell__bd">
            <input class="weui-input" type="text" name="batch"  placeholder="请输入出厂编号"/>
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">检定校准单位</label></div>
        <div class="weui-cell__bd">
            <input class="weui-input" type="text" name="zlgrage"  placeholder="请输入检定校准单位"/>
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">生产厂家</label></div>
        <div class="weui-cell__bd">
            <input class="weui-input" type="text" name="output"  placeholder="请输入生产厂家"/>
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-cell__hd"><label for="" class="weui-label">起始日期</label></div>
        <div class="weui-cell__bd">
            <input class="weui-input" type="date" id="kssj" name="kssj" value=""/>
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-cell__hd"><label for="" class="weui-label">结束日期</label></div>
        <div class="weui-cell__bd">
            <input class="weui-input" type="date" id="jssj" name="jssj" value=""/>
        </div>
    </div>
</div>
<div style="text-align:center" class="button-sp-area">
    <input type="submit" style="width:40%;height:40px;margin-right:30px;font-size:18px" id="cx" href="javascript:;" class="weui-btn weui-btn_mini weui-btn_primary" value="查询">
    <input type="button" style="width:40%;height:40px;font-size:18px" id="qc" href="javascript:;" class="weui-btn weui-btn_mini weui-btn_warn" value="清除">
</div>
</form>
<div  class="weui-btn-area">
    <button  onclick="abc()" class="weui-btn weui-btn_primary "  id="showTooltips">返回</button>
</div>
</body>
<script>
    $('#cx').click(function(){
        if(($.trim($('input[name=dpasum]').val()) == '')&&($.trim($('input[name=batch]').val()) == '')&&($.trim($('input[name=norm]').val()) == '')&&
                ($.trim($('input[name=xhtype]').val()) == '')&&($.trim($('input[name=zlgrage]').val()) == '')&&($.trim($('input[name=output]').val()) == '')&&
                ($.trim($('#kssj').val()) == '')&&($.trim($('input[name=gxsum]').val()) == '')&&($.trim($('#jssj').val()) == '')){
            alert('请至少选择一个查询条件');
            return false;
        }
    });
    $('#qc').click(function(){
        $(':text').val( '');
        $('#kssj').val( '');
        $('#jssj').val( '');
    });
    function abc(){
        WeixinJSBridge.call('closeWindow');
    }
</script>
</html>